
<table width="100%" border="1" bordercolor="#FEE2B3" cellspacing="0" cellpadding="0">
  <tr>
    <td height="59" bgcolor="FFFCED"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="textfield3" type="text" class="textinfo" value="请输入帮派誓言！" size="50" /><BR><BR>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="word">帮会地址：</span><a href="<?php echo SITE_URL?>tong/show/id/<?php echo $tong->getId();?>" class="yh"><?php echo SITE_URL?>tong/show/id/<?php echo $tong->getId();?></a> <span class="word">复制链接 发给我的好友</span> <br><br></td>
  </tr>
</table>
<table width="200" height="5" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="3%" background="<?php echo SITE_URL?>img/made/made_r3_c4.jpg"><img src="<?php echo SITE_URL?>img/made/made_r3_c2.jpg" width="9" height="57" /></td>
    <td width="51%" background="<?php echo SITE_URL?>img/made/made_r3_c4.jpg"><span class="tit">HOME</span>&nbsp;&nbsp;&nbsp; <span class="tit"><a href="#">相册</a></span>&nbsp;&nbsp;&nbsp;&nbsp; <span class="tit"><a href="#">讨论</a></span>&nbsp;&nbsp;&nbsp;&nbsp; <span class="tit">成员</span></td>
    <td width="44%" background="<?php echo SITE_URL?>img/made/made_r3_c4.jpg"><span class="word">帮会公告：</span>
    <input name="textfield32" type="text" class="word" value="暂无任何公告" size="50" /></td>
    <td width="2%" align="right" background="<?php echo SITE_URL?>img/made/made_r3_c4.jpg"><img src="<?php echo SITE_URL?>img/made/made_r3_c22.jpg" width="15" height="57" /></td>
  </tr>
</table>
<table width="200" height="5" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td></td>
  </tr>
</table>
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="11" height="887" valign="top">&nbsp;</td>
    <td width="236" valign="top"><table width="231" height="241" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td valign="top" background="<?php echo SITE_URL?>img/group/photoview/tp_r1_c2.jpg"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="30"></td>
          </tr>
          <tr>
            <td align="center"><img src="<?php echo SITE_URL.'uploads/'.$tong->getImg() ?>" border="2" bordercolor="#cccccc" width="170" height="170" /></td>
          </tr>
          <tr>
            <td height="30" align="center" class="yhbig"><a href="<?php echo SITE_URL?>tong/Join/id/<?php echo $tong->getId();?>">加入该帮会</a></td>
          </tr>
        </table></td>
      </tr>
    </table>
      <table width="231" height="5" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td></td>
        </tr>
      </table>
      <table width="231" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/group/photoview/group_photoview_r5_c1.jpg" width="229" height="8" /></td>
        </tr>
      </table>
      <table width="229" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td background="<?php echo SITE_URL?>img/group/photoview/group_photoview_r7_c1.jpg"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td class="tit" height="30">&nbsp;&nbsp;新加成员</td>
            </tr>
          </table>
            <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                          <?php
			$ncount = count($newUsers);
            for($i=0;$i<$ncount;$i++){
				$user = $newUsers[$i];
				
				//var_dump($user);
                if(($i%3)==0){
				?>
				</tr><tr>
				<?php
				}
				?>
                <td align="center">
                <a href="<?php echo SITE_URL.'sns/space.php?uid='.$user->getUid(); ?>"><img src="<?php echo SITE_URL."ucenter/avatar.php?uid=".$user->getUid()."&size=small"?>" width="45" height="45" class="img" /></a>
                <p></p>
                <p><a href="<?php echo SITE_URL.'sns/space.php?uid='.$user->getUid(); ?>"><?php echo $user->getUsername();?></a></p><p></p>
                </td>
 
                <?php }	?>
              </tr>
            </table></td>
        </tr>
      </table>
      <table width="231" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/group/photoview/group_photoview_r9_c1.jpg" width="229" height="8" /></td>
        </tr>
      </table>
      <table width="231"  height="5" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td></td>
        </tr>
      </table>
      <table width="229" height="141" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td valign="top" background="/img/group/photoview/tp_r3_c1.jpg">
          <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="30" colspan="2" class="indexdh">&nbsp;&nbsp;帮内富翁</td>
            </tr>
                                      <?php
			$ncount = count($topUsers);
            for($i=0;$i<$ncount;$i++){
				$user = $topUsers[$i];
				?>
            <tr>
              <td width="10%" height="20" class="weizhi"><img src="<?php echo SITE_URL?>img/sz/<?php echo ($i+1);?>.gif" width="15" height="15" /></td>
              <td width="90%" class="weizhi"><a href="<?php echo SITE_URL.'sns/space.php?uid='.$user->getUid(); ?>"><?php echo $user->getUsername(); ?></a></td>
            </tr>
            <?php } ?>
          </table></td>
        </tr>
      </table>
      <table width="231"  height="5" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td></td>
        </tr>
      </table>
      <table width="229" height="141" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td valign="top" background="<?php echo SITE_URL?>img/group/photoview/tp_r3_c1.jpg"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="30" colspan="2" class="indexdh">&nbsp;&nbsp;最活跃的人</td>
            </tr>
            <?php
			$ncount = count($hotUsers);
            for($i=0;$i<$ncount;$i++){
				$user = $hotUsers[$i];
				if($user):
								?>
            <tr>
              <td width="10%" height="20" class="weizhi"><img src="<?php echo SITE_URL?>img/sz/<?php echo ($i+1);?>.gif" width="15" height="15" /></td>
              <td width="90%" class="weizhi"><a href="<?php echo SITE_URL.'sns/space.php?uid='.$user->getUid(); ?>"><?php echo $user->getUsername();?></a></td>
            </tr>
			<?php endif;?>
            <?php } ?>
         
          </table></td>
        </tr>
      </table>
      <table width="231"  height="5" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td></td>
        </tr>
      </table>
      <table width="231" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/group/photoview/group_photoview_r5_c1.jpg" width="229" height="8" /></td>
        </tr>
      </table>
      <table width="229" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="center" valign="top" background="<?php echo SITE_URL?>img/group/photoview/group_photoview_r7_c1.jpg"><table width="95%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="30" align="left">&nbsp;&nbsp;<span class="tit">圈子游客</span></td>
            </tr>
          </table>
            <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                                        <?php
			$ncount = count($visitUsers);
            for($i=0;$i<$ncount;$i++){
				$user = $visitUsers[$i];
				
				//var_dump($user);
                if(($i%3)==0){
				?>
				</tr><tr>
				<?php
				}
				?>
                 <td align="center">
               <a href="<?php echo SITE_URL.'sns/space.php?uid='.$user->getUid(); ?>"><img src="<?php echo SITE_URL."ucenter/avatar.php?uid=".$user->getUid()."&size=small"?>" width="45" height="45" class="img" /></a>
                <p></p>
                <p><a href="<?php echo SITE_URL.'sns/space.php?uid='.$user->getUid(); ?>"><?php echo $user->getUsername();?></a></p><p></p>
                </td>
 
                <?php }	?>
                           </table></td>
        </tr>
      </table>
      <table width="231" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/group/photoview/group_photoview_r9_c1.jpg" width="229" height="8" /></td>
        </tr>
      </table></td>
    <!--Include Layout-->
    <?php 
	//include_partial('tongIndexPartial');
	function pager($pager,$pageurl,$prestr,$nextstr){
	$pagestr = '';
	if( $pager->haveToPaginate() ){
		$pagestr .=  link_to($prestr,$pageurl.$pager->getPreviousPage());
		foreach ( $pager->getLinks() as $page ){
			$pagestr .=  link_to_unless($page == $pager->getPage(),$page,$pageurl.$page);
			$pagestr .=  ($page != $pager->getCurrentMaxLink()) ? '&nbsp;':'';
		}
		$pagestr .=  link_to($nextstr,$pageurl.$pager->getNextPage());
	}
	return $pagestr;
}
	include($partial.'Partial.php');
	 ?>
  </tr>
</table>